<?php
/**
 * @author Radovan Dvorsky
 * @version 20100325
 */
//require_once ('application/default/models/Db/Mapper/MapperAbstract.php');

class Db_Mapper_QnForStudent extends Db_Mapper_Abstract {
	
	/**
	 * Zisti ci ma student pridelene cislo otazky
	 * 
	 * @param $student Db_Model_Student
	 * @return boolean
	 */
	public function hasQuestion(Db_Model_Student $student){		
		
		if($this->getTable()->find($student->getID_st())->count() > 0){
			return true;
		}

		return false;
				
	}
}

?>